package com.shawn.integeration.business.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "t_order")
public class Order extends Model<Order> {
    /**主键**/
    @TableId(value="id", type= IdType.AUTO)
    private int id;

    /**订单名称**/
    private String name;

    /**消息编号**/

    private String messageId;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
